//
//  NSDate-Extension.swift
//  SwiftDemo
//
//  Created by 李国卿 on 2020/2/24.
//  Copyright © 2020 guoqing.li. All rights reserved.
//

import UIKit

extension NSDate{
    
    class func getCurrentTime() -> String{
        
        let nowDate = NSDate()
        
        let interval = Int(nowDate.timeIntervalSince1970)
        
        return "\(interval)"
    }
}

